range: don't use gtk_range_set_min_slider_size()
authorCosimo Cecchi <cosimoc@gnome.org>
Sat, 27 Feb 2016 21:31:26 +0000 (13:31 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 29 Feb 2016 18:45:13 +0000 (10:45 -0800)
commit424f17c0fbd6a97132c73a3fb7f3fb374615384d
tree7bbf59f26b381eebeefb26446b70a9ab310474e9
parent0468ff15459b4e01ca57e4a057908de70e502456
range: don't use gtk_range_set_min_slider_size()

The way this method is used from the GtkRange subclasses doesn't really
work well when the slider properties change as a consequence of e.g. a
style class being applied (e.g. the fine-tune style class).

In fact, there's no need to read the minimum slider size out of band,
and we can obtain the same result in a way that always work by setting a
private property on GtkRange.
gtk/gtkrange.c
gtk/gtkrangeprivate.h
gtk/gtkscale.c
gtk/gtkscrollbar.c